import Layout from '@/views/layout/layout.vue'
import page404 from '@/views/404/404.vue'
import login from '@/views/login/login.vue'

export const routeMapBase =  [
	{ path:'/index',redirect:'/dashboard' },
	{
		path: '/',
		redirect: 'dashboard',
		component: Layout,
		children:[
			{
				path: 'dashboard',
				name: 'dashboard',
				component: () => import('@/views/dashboard/dashboard.vue'),
				meta: { tabname: '主页' }
			}
		]
	},
	{
		path:'*',
		name: 'notfound',
		component:page404,
		meta: { tabname: '404' }
	},
	{
		path:'/login',
		name: 'login',
		component:login
	},
	//系统类的功能
	{
		path: '/system',
		component: Layout,
		children: [
			{ path:'/',redirect:'systemConfig' },
			{
				path: 'systemConfig',
				name: 'systemConfig',
				component: () => import('../views/system/systemConfig.vue'),
				meta: { tabname: '系统配置' }
			},
			{
				path: 'log',
				name: 'log',
				component: () => import('../views/system/log.vue'),
				meta: { tabname: '系统配置' }
			},
			{
				path: 'permission',
				name: 'permission',
				component: () => import('../views/system/permission.vue'),
				meta: { tabname: '权限管理' }
			},
			{
				path: 'permissionUser',
				name: 'permissionUser',
				component: () => import('../views/system/permissionUser.vue'),
				meta: { tabname: '账号管理' }
			},
			{
				path: 'permissionRole',
				name: 'permissionRole',
				component: () => import('../views/system/permissionRole.vue'),
				meta: { tabname: '角色管理' }
			},
			{
				path: 'permissionMenu',
				name: 'permissionMenu',
				component: () => import('../views/system/permissionMenu.vue'),
				meta: { tabname: '菜单管理' }
			},
		]
	},
	
	
	
]

